import requestTypes from '../common';

// 演习计划列表
const getExerciseList = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/Exercise/QueryPageList',
		method: 'get',
		params: parameter,
	});
};
//演习计划提交
const postExerciseList = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/Exercise/Add',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};
//演习计划修改
const postChangeExercise = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/Exercise/Update',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};
//删除演习计划/演习试试
const postDeleteExercise = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/Exercise/Delete',
		method: 'post',
		data: parameter,
	});
};
export { getExerciseList, postExerciseList, postDeleteExercise, postChangeExercise };
